package com.xn.monitor.web.service;

import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by yangshoujun on 2017/6/25 下午1:02.
 */
public class PropertyUtils extends PropertyPlaceholderConfigurer {

    public static final Map<String, String> map = new HashMap<String, String>();

    @Override
    protected String convertProperty(String propertyName, String propertyValue) {
        map.put(propertyName, propertyValue);
        return this.convertPropertyValue(propertyValue);
    }

    public static String get(String propertyName) {
        return map.get(propertyName);
    }
}
